package main;

import java.io.IOException;

import model.GraphFactory;
import model.Graph;
import model.GraphDirector;
import model.IGraphReader;

public class creategraph {

	private static GraphFactory f = null;
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("verga!");
		f = GraphFactory.getInstance();
		IGraphReader gr = f.createReader("EMF");
		try {
			gr.setSrc("C:\\Documents and Settings\\Sol\\Escritorio\\default.architecture");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		GraphDirector gd = GraphDirector.getInstance();
		gd.setGraphReader(gr);
		Graph g = gd.createGraph();
		System.out.println(g.toString());

	}

}
